Page({
  data:{
    arr:[
      {id:1001,name:"html"},
      {id:1002,name:"css"},
      {id:1003,name:"js"}
    ]
  },
  handleConfirm(event){
    console.log(event.detail.value);
    var name = event.detail.value;
    var arr = this.data.arr;
    arr.unshift({id:1004,name});
    this.setData({
      arr
    })
  }
})
